package csu.rjxyg.action.constant;

import java.util.HashMap;
import java.util.Map;

public class PermissionConstant {
	private static Map permissionMap = new HashMap();
	private static Map permissionNameMap = new HashMap();
	//最高权限
	public static final String PERMISSION_TOP_ROOT			=		"000";

	//院长
	public static final String PERMISSION_YZ				=		"001";
	
	
	//行政权限段
	public static final String PERMISSION_ADM				=		"100";
	//行政主管
	public static final String PERMISSION_ADM_ZR			=		"101";
	//办公室权限段
	public static final String PERMISSION_ADM_BGS			=		"110";
	public static final String PERMISSION_ADM_BGS_ZR		=		"111";
	public static final String PERMISSION_ADM_BGS_CY		=		"112";
	//实验室权限段
	public static final String PERMISSION_ADM_SYS			=		"120";
	public static final String PERMISSION_ADM_SYS_ZR		=		"121";
	public static final String PERMISSION_ADM_SYS_CY		=		"122";
	//学生办公室权限段
	public static final String PERMISSION_ADM_XB			=		"130";
	public static final String PERMISSION_ADM_XB_ZR			=		"131";
	public static final String PERMISSION_ADM_XB_CY			=		"132";
	
	
	//教学
	public static final String PERMISSION_TEA				=		"200";
	//教学主任
	public static final String PERMISSION_TEA_ZR			=		"201";
	//科任教师
	public static final String PERMISSION_TEA_JS			=		"202";
	//辅导员
	public static final String PERMISSION_TEA_FDY			=		"203";
	
	
	//学生
	public static final String PERMISSION_XS				=		"301";
	
	static{	
		permissionNameMap.put(PERMISSION_TOP_ROOT, "最高管理员");
		permissionNameMap.put(PERMISSION_YZ, "院长");
		permissionNameMap.put(PERMISSION_ADM_ZR, "行政主管");
		permissionNameMap.put(PERMISSION_ADM_BGS_ZR, "办公室主任");
		permissionNameMap.put(PERMISSION_ADM_BGS_CY, "办公室成员");
		permissionNameMap.put(PERMISSION_ADM_SYS_ZR, "实验室主任");
		permissionNameMap.put(PERMISSION_ADM_SYS_CY, "实验室成员");
		permissionNameMap.put(PERMISSION_ADM_XB_ZR, "学办主任");
		permissionNameMap.put(PERMISSION_ADM_XB_CY, "学办成员");
		permissionNameMap.put(PERMISSION_TEA_ZR, "教学主管");
		permissionNameMap.put(PERMISSION_TEA_JS, "教师");
		permissionNameMap.put(PERMISSION_TEA_FDY, "辅导员");
		permissionNameMap.put(PERMISSION_XS, "学生");
		
		
		permissionNameMap.put("最高管理员", PERMISSION_TOP_ROOT);
		permissionNameMap.put("院长", PERMISSION_YZ);
		permissionNameMap.put("行政主管", PERMISSION_ADM_ZR);
		permissionNameMap.put("办公室主任", PERMISSION_ADM_BGS_ZR);
		permissionNameMap.put("办公室成员", PERMISSION_ADM_BGS_CY);
		permissionNameMap.put("实验室主任", PERMISSION_ADM_SYS_ZR);
		permissionNameMap.put("实验室成员", PERMISSION_ADM_SYS_CY);
		permissionNameMap.put("学办主任", PERMISSION_ADM_XB_ZR);
		permissionNameMap.put("学办成员", PERMISSION_ADM_XB_CY);
		permissionNameMap.put("教学主管", PERMISSION_TEA_ZR);
		permissionNameMap.put("教师", PERMISSION_TEA_JS);
		permissionNameMap.put("辅导员", PERMISSION_TEA_FDY);
		permissionNameMap.put("学生", PERMISSION_XS);
		
		permissionMap.put(PERMISSION_TOP_ROOT, "PERMISSION_TOP_ROOT");
		permissionMap.put(PERMISSION_YZ, "PERMISSION_YZ");
		permissionMap.put(PERMISSION_ADM_ZR, "PERMISSION_ADM_ZR");
		permissionMap.put(PERMISSION_ADM_BGS_ZR, "PERMISSION_ADM_BGS_ZR");
		permissionMap.put(PERMISSION_ADM_BGS_CY, "PERMISSION_ADM_BGS_CY");
		permissionMap.put(PERMISSION_ADM_SYS_ZR, "PERMISSION_ADM_SYS_ZR");
		permissionMap.put(PERMISSION_ADM_SYS_CY, "PERMISSION_ADM_SYS_CY");
		permissionMap.put(PERMISSION_ADM_XB_ZR, "PERMISSION_ADM_XB_ZR");
		permissionMap.put(PERMISSION_ADM_XB_CY, "PERMISSION_ADM_XB_CY");
		permissionMap.put(PERMISSION_TEA_ZR, "PERMISSION_TEA_ZR");
		permissionMap.put(PERMISSION_TEA_JS, "PERMISSION_TEA_JS");
		permissionMap.put(PERMISSION_TEA_FDY,  "PERMISSION_TEA_FDY");
		permissionMap.put(PERMISSION_XS, "PERMISSION_XS");
	}
	
	public static Map getPermissionMap() {
		return permissionMap;
	}

	public static Map getPermissionNameMap() {
		return permissionNameMap;
	}
}
